PointValueCompare Action Type

The Point Value Compare (PointValueCompare) action type is used to compare two values and perform an action, if true. The values used in the comparison can be either from a point or a hard-coded value.

To learn about how these elements relate to other elements in a well test configuration XML structure, see Well Test Hierarchy.

Example

<Actions>

<Action type="PointValueCompare" operator="&lt;&gt;" value1="POMSV" value1type="UDC" value1relativeFacilityLink="Separator" value2="1" value2type="Self" value2relativeFacilityLink="">

<TrueAction>

<Action type="Exit" udc="MSG" relativeFacilityLink="Separator" valueType="Text" attribute="" value="Position Moved" />

</TrueAction>

<FalseAction>

</FalseAction>

</Action>

</Actions>

PointValueCompare Action Type Attributes

The PointValueCompare action type has the following associated configuration attributes:

Attribute Required Description

operator

No

Specifies the operation used for the comparison. Acceptable values include:

  • Equal= (operator="=")
  • Greater than> (operator="&gt;")
  • Greater than or equal>= (operator="&gt;=")
  • Less than< (operator="&lt;")
  • Less than or equal<= (operator="&lt;=")
  • Not equal<> (operator="&lt;&gt;")

type

Yes

Specifies the action type for the action.

E.g., type="PointValueCompare"

value1

Yes

Specifies the first value to use when comparing the point value in the expression:

value1RelativeFacilityLink

No

Specifies the first relative facility tag to use for the action.

Note:
The facility tag used as the starting point for the relative resolution depends on where this action type is configured. If the action is defined at a position level, then the base facility tag will be the well facility. If defined at the header level, the base facility will be the header facility.

value1Type

Yes

Specifies the first value Type (value1Type) property. Options include Self or UDC.

value2

Yes

Specifies the second value to use when comparing the point value in the expression:

value2RelativeFacilityLink

No

Specifies the second relative facility tag to use for the action.

Note:
The facility tag used as the starting point for the relative resolution depends on where this action type is configured. If the action is defined at a position level, then the base facility tag will be the well facility. If defined at the header level, the base facility will be the header facility.

value2Type

Yes

Specifies the second value Type (value2Type) property. Options include Self or UDC.

True Action, False Action

The PointValueCompare action type supports the configuration of true and false actions, these will be executed if the comparative expression is evaluated as true and/or false. If the expression evaluated is true, the action defined in the True Action property will be executed. Similarly, if the expression evaluated is false, the action defined in the False Action property will be executed. In the XML configuration these conditional actions are specified in the <TrueAction> and <FalseAction> elements.

Note: It is possible (and probable) to have nested Point Value Compare actions. There is no limit to the number of nested levels.

See the True Action, False Action element for more information.

Back to top